package com.projectfile.service;

import com.projectfile.dao.LoginMapper;
//import com.projectfile.redistemplate.RedisTemplates;
import com.projectfile.entity.LoginUser;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LoginServiceImpl {
    @Resource
    private LoginMapper loginMapper;
//    @Resource
//    private RedisTemplates redisTemplates;
    @Resource
    private StringRedisTemplate template;

    public LoginUser findByUserName(String username) {

        return loginMapper.findByUserName(username);
    }




}
